package com.kaibo.roomdemo.fragment

import android.app.Fragment
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.kaibo.roomdemo.R
import com.kaibo.roomdemo.databinding.FragmentDataBindingBinding
import kotlinx.android.synthetic.main.fragment_data_binding.*

/**
 * @author Administrator
 * @date 2018/2/22 0022 上午 10:55
 * GitHub：
 * email：
 * description：
 */
class DataBindingFragment : Fragment() {

    private lateinit var fragmentDataBindingBinding: FragmentDataBindingBinding

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
        fragmentDataBindingBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_data_binding, container, false)
        fragmentDataBindingBinding.imgUrl = "https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=4172744759,3392598703&fm=58"
        return fragmentDataBindingBinding.root
    }

}